<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Poetry Contest: Submission</title>
</head>
<body>

<form action="#" method="post" th:action="@{/poem/submit}" th:object="${poem}">

    <table border='0' cellpadding='2' cellspacing='2' width='480px'>

        <tr>
            <td align='center'>
                <label for="author">Author:</label>
            </td>
            <td>
                <input th:field="*{author}" type="text"/>
            </td>
        </tr>

        <tr>
            <td align='center'>
                <label for="title">Poem Title:</label>
            </td>
            <td>
                <input th:field="*{title}" type="text"/>
            </td>
        </tr>

        <tr>
            <td align='center'>
                <label for="body">Poem:</label>
            </td>
            <td>
                <textarea cols="30" rows="30" th:field="*{body}"/>
            </td>
        </tr>

        <tr>
            <td align='center'>
                <input type="submit" value="Submit Poem">
            </td>
        </tr>


    </table>
</form>

</body>
</html>